package crm

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

var workLs = WorkLogService{}

func WorkLogQueryAll(c *gin.Context) {
	start := c.DefaultQuery("start", "0")
	limit := c.DefaultQuery("limit", "50")
	res, msg, total, data := workLs.QueryWorkLogByPage(start, limit)
	c.JSON(http.StatusOK, gin.H{"res":res, "msg":msg, "data":data, "total":total})

}
